package com.group6.exam.teacher.dao;

import java.util.List;
import java.util.Map;

import com.group6.exam.common.entity.PageModel;
import com.group6.exam.common.entity.PaperEntity;

public interface IPageDao {

	List<Map<String, Object>> maintain(PageModel pageModel, PaperEntity paper);

	String getSubjectName(String subject_id);

	int deletePaper(String paperId);

	Map<String, Object> initUpdate(String paperId);

	int update(PaperEntity paper);

	List<Map<String, Object>> initType();

	List<Map<String, Object>> initUserName();

	int addPaper(PaperEntity paper);

	String getId(String subjectName);

	List<Map<String, Object>> getPaperById(String paperId);

	List<Map<String, Object>> getQuestionsByTypeId(String typeId, String number);

	int getTotalRecords(PaperEntity paper);

}
